package com.gao.interceptordemo.controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gaofeng
 * date 2021年09月26日 23:03
 */
@RestController
public class IndexController {

    @PostMapping("/a")
    public String index(Model model) {
        model.addAttribute("msg","你好世界") ;
        return "index" ;
    }
}
